﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entidades1;
using Logica;


namespace WebSisVet1
{
    public partial class GestionVeterinario : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
<<<<<<< .mine
            VeterinarioBLL v = new VeterinarioBLL();
            grdVeterinario.DataSource = v.getVeterinario();
            grdVeterinario.DataBind();
        }
=======
<<<<<<< .mine
            VeterinarioBLL v = new VeterinarioBLL();
            grdVeterinario.DataSource = v.getVeterinario();
            grdVeterinario.DataBind();
        }
=======
            VterinarioBLL v = new VterinarioBLL();
            GridVeterinario.DataSource = v.getVeterinario();
            GridVeterinario.DataBind();
        }
>>>>>>> .r19
>>>>>>> .r21

<<<<<<< .mine
        protected void veterinarioGriv_SelectedIndexChanged(object sender, EventArgs e)
        {
            LbMsg.Text = grdVeterinario.SelectedValue.ToString();
            //1.
            //Response.Redirect("~/RegPropietario.aspx?cedula="+LbMsg.Text);
            //2.
            Session["cedula"] = LbMsg.Text;
            Session["nombre"] = grdVeterinario.SelectedRow.Cells[2].Text;
            Session["apellido"] = grdVeterinario.SelectedRow.Cells[3].Text;
            Session["telefono"] = grdVeterinario.SelectedRow.Cells[5].Text;
            Session["direccion"] = grdVeterinario.SelectedRow.Cells[4].Text;
            Session["email"] = grdVeterinario.SelectedRow.Cells[6].Text;
            Session["bd"] = "mysql";
            Response.Redirect("~/RegVeterinario.aspx");
=======
<<<<<<< .mine
        protected void veterinarioGriv_SelectedIndexChanged(object sender, EventArgs e)
        {
            LbMsg.Text = grdVeterinario.SelectedValue.ToString();
            //1.
            //Response.Redirect("~/RegPropietario.aspx?cedula="+LbMsg.Text);
            //2.
            Session["cedula"] = LbMsg.Text;
            Session["nombre"] = grdVeterinario.SelectedRow.Cells[2].Text;
            Session["apellido"] = grdVeterinario.SelectedRow.Cells[3].Text;
            Session["telefono"] = grdVeterinario.SelectedRow.Cells[5].Text;
            Session["direccion"] = grdVeterinario.SelectedRow.Cells[4].Text;
            Session["email"] = grdVeterinario.SelectedRow.Cells[6].Text;
            Session["bd"] = "mysql";
            Response.Redirect("~/RegVeterinario.aspx");
=======
        protected void GridVeterinario_SelectedIndexChanged(object sender, EventArgs e)
        {
            Label1.Text = GridVeterinario.SelectedValue.ToString();
            //1.Response.Redirect("~/regContactos.aspx?cedula="+LbMsg.Text);
            Response.Redirect("~/regContactos.aspx");
>>>>>>> .r19
>>>>>>> .r21
        }
    }
}